import request from '@/utils/request'
import type { ResponseData, VenuePlace } from './type'
//枚举地址
enum API {
    // 获取明天场地列表
    TOMORROW_VENUE_LIST = '/Subscribe/getSubscribeByTomorrow',
    queryByYmqInfo = '/api/ymq/queryByYmqInfo?bookTime=2025-01-10&isDel=1'
}
//获取菜单数据
export const subscribeByTomorrow = (gid: string, isWeekend: string) =>  
    request.get<any, ResponseData>(API.TOMORROW_VENUE_LIST + `?gid=${gid}&isWeekend=${isWeekend}`)
export const queryByYmqInfo = () =>  
    request.get<any, VenuePlace[]>(API.queryByYmqInfo)

